package com.kuaihuoyun.ctms.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * Created by kevin on 2018/1/5.
 */
@Data
public class OrderDto implements Serializable {
    private String number; // 订单号
    private String wmsNumber; // wms订单号
    private String wmsLocation; // 集货位
    private Integer deliveryTime; // 提货时间
    private Integer appointArriveTime;
    private String customerOrderNumber; // 客户单号
    private String startAddress; // 起始地
    private String endAddress; // 目的地
    private ContactEntity consigner; // 发货人
    private List<ContactEntity> consignees; // 收货人
    private CargoEntity cargo;//货物
    private FreightEntity freightIn; // 上游运费
    private FreightEntity freightOut; // 司机运费
    private Double paymentCollect; // 代收货款
    private Integer needReceipt; // 是否需要回单
    private Integer receiptCount; // 回单数量
    private String note; // 备注
    private Map<String, Object> extraFields; // 扩展字段

    @Deprecated
    private DispatchInfoEntity dispatchInfo; // 调度信息
    private DriverEntity dispatchDriver;
    private Integer state; // 状态
    private String packNumber; // 车次号
    private Integer waybillState; // 运单状态
    private Integer publishTime; // 发布时间
    private Integer receiveTime; // 接收时间
    private Integer shipmentTime; // 装货时间
    private Integer signedTime; // 签收时间

    private String receiptStatus; // 回单状态
    private int created; // 创建时间
    private int updated; // 更新时间

    // 货物
    private List<TtmsOrderCargoEntity> cargoes;

}
